package  com.pcbly.web.business.news;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.news.NewsBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface NewsService extends BaseService<NewsBean> {

	NewsBean getNewsBeanById(String id) throws Exception;
	
	void removeNewsBeanById(String id) throws Exception;
	
	void removeNewsBeanByIds(String ids) throws Exception;
	
	NewsBean saveNewsBean(NewsBean news) throws Exception;
	
	NewsBean updateNewsBean(NewsBean news) throws Exception;
	
	Page<NewsBean>  findNewsBeanByCond(NewsBean bean,
			Page<NewsBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveNewsBeanExt(String sql) throws Exception;

	String findNewsBeanExtCreate(String tableName) throws Exception;

	String findNewsBeanExtEdit(String tableName, String id)
			throws Exception;

	String findNewsBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasNewsBeanExtData(String tableName, String id)
			throws Exception;
}